package com.topisv.tms.entity.message;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.topisv.tms.entity.IdEntity;
import com.topisv.tms.entity.User;

/**
 * 站内信
 * @author ch
 *
 */
@Entity
@Table(name = "message")
public class Message extends IdEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private String subject;
	private String jobuuidAccept;
	private String jobuuidSender;
	private String content;
	private String handleUrl;
	private String status;
	private String isDeleted;
	private Date createTime;
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getJobuuidAccept() {
		return jobuuidAccept;
	}
	public void setJobuuidAccept(String jobuuidAccept) {
		this.jobuuidAccept = jobuuidAccept;
	}
	public String getJobuuidSender() {
		return jobuuidSender;
	}
	public void setJobuuidSender(String jobuuidSender) {
		this.jobuuidSender = jobuuidSender;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getHandleUrl() {
		return handleUrl;
	}
	public void setHandleUrl(String handleUrl) {
		this.handleUrl = handleUrl;
	}
	public String getStatus() {
		return status;
	}
	public void setStatus(String status) {
		this.status = status;
	}
	public String getIsDeleted() {
		return isDeleted;
	}
	public void setIsDeleted(String isDeleted) {
		this.isDeleted = isDeleted;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	
	
	
	//dto
	private User sender;
	private User accepter;
	
	@Transient
	public User getSender() {
		return sender;
	}
	
	public void setSender(User sender) {
		this.sender = sender;
	}
	
	@Transient
	public User getAccepter() {
		return accepter;
	}
	
	public void setAccepter(User accepter) {
		this.accepter = accepter;
	}
	
	
 
}